home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
pctjoc85.arc
/
GRAFCHAR.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1985-08-26
|
1KB
|
39 lines
program Grafchar;
const
{ 76543210 }
BOX: array[0..7] of byte = ($FF, { 11111111 }
$81, { 1 1 }
$81, { 1 1 }
$81, { 1 1 }
$81, { 1 1 }
$81, { 1 1 }
$81, { 1 1 }
$FF); { 11111111 }
BOX_byte: byte = $80; {BOX byte value}
var
BOX_char: char absolute BOX_byte;
EXT_PTR_ofs: integer absolute $0000:$007C;
EXT_PTR_seg: integer absolute $0000:$007E;
begin
graphcolormode; palette(1); {color; cyan-magenta-white}
textcolor(1); {cyan}
gotoxy(1,2);
writeln('Before EXT_PTR points to graphics table');
gotoxy(1,4);
writeln('Character value = ',Box_byte,' Graphic = ',BOX_char);
EXT_PTR_ofs:=ofs(BOX); {graphic table offset}
EXT_PTR_seg:=seg(BOX); {graphic table segment address}
textcolor(2); {magenta}
gotoxy(1,8);
writeln('After EXT_PTR points to graphics table');
gotoxy(1,10);
writeln('Character value = ',Box_byte,' Graphic = ',BOX_char);
writeln; write('>>Press Enter: ');
readln;
textmode
end.